package com.gl.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.WebApplicationInitializer;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * <p>Description:加载spring mvc 配置信息配置类</p>
 *
 * @author gaol
 * @version 1.0
 * @date 2017/5/16
 */
@Configuration
public class WebContextInit implements WebApplicationInitializer {

    private static Logger logger = LoggerFactory.getLogger(WebContextInit.class);

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        logger.info("初始化SpringWebContext...");
    }
}
